package life.system.product.feign;

import life.system.common.to.es.SkuEsModel;
import life.system.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;


/**
 * 搜索远程调用接口
 */
@FeignClient("Search")
public interface SearchFeignService {

    @PostMapping("/search/product/save")
    R productStatusUp(@RequestBody SkuEsModel skuEsModels);

    @PostMapping("/search/product/del/{skuId}")
    R productDel(@PathVariable("skuId") Integer skuId);
}
